<include file="Public/header" />

<h2>用户维护 </h2>
<a class="pull-right" href="{:U('form')}">添加</a>
<form class="form-horizontal" action="{:U('search')}" method="post">
  <table class="table">
  <tr>
  <td><input name="search_key" class="form-control">
  <input type="submit" value="搜索" class="btn btn-primary"></td>
  </tr>
  </table>
</form>

<table class="table table-hover">
<tr><td>用户名</td><td>密码</td><td>email</td><td>图片</td><td>操作</td></tr>

<volist name="users" id="vo">
  <tr>
  <td>{$vo.zjs_username}</td>
  <td>{$vo.zjs_pass}</td>
  <td><notempty name="vo.zjs_email">{$vo.zjs_email}<else/>Email为空</notempty></td>
  <td><img src="__ROOT__/Uploads/{$vo.zjs_photo}" width="100"/></td>
  <td>
  <a href="{:U('mod',array('id'=>$vo['zjs_id']))}">修改</a>
  <a href="javascript:if(confirm('确认删除?')) location='{:U('delete',array('id'=>$vo['zjs_id']))}'">删除</a></td>
  </tr>
</volist>

</table>

<include file="Public/footer" />